Deployment
Preparation:
What you need to have before deploying Mary
Deployment:
Cloning the Repository
Clone Mary's Repository https://codeberg.org/Better_Look_Next_Time/Mary
Run the command:
bash
bun install
Connecting Keys
There are two options for where the keys will come from (from the .env file or from environment variables)
From the .env file
- Create a .env file in Mary's directory
- Write this there (insert your data)
env
# Open AI
NAGA_KEY = "Keys_NagaAI"
NAGA_BASE_URL = "https://api.naga.ac/v1"
--
// Discord Bot
DISCORD_TOKEN = "DISCORD_token"
From environment variables, run the commands
bash
export NAGA_KEY=keys_NagaAI
export NAGA_BASE_URL=https://api.naga.ac/v1
export DISCORD_TOKEN=Discord_tokens
Running Mary
Run Mary with the command
bash
bun run index.ts